import VueRouter from "vue-router";
import Vue from "vue";
const login = () => import('../views/LoginView');
const register = () => import('../views/RegisterView');

Vue.use(VueRouter);

const routes = [{
        path: '/',
        redirect: login,
        component: login
    },
    {
        path: '/login',
        name: 'login',
        component: login
    },
    {
        path: '/register',
        name: 'register',
        component: register
    },

];

const router = new VueRouter({
    mode: 'history',
    routes
})
export default router